<form name="frm" action="<?php echo $this->site['base_url']?>admin_clients/save" method="post" enctype="multipart/form-data">
<table class="title" cellspacing="0" cellpadding="0">
  <tr>
    <td class="title_label"><?php echo Kohana::lang('admin_lang.menu_client_coner') ?>&nbsp;>>&nbsp;<?php echo Kohana::lang('clients_lang.tt_page')?></td>
    <td class="title_button">
    <button type="button" name="btn_back" class="button back" onclick="javascript:location.href='<?php echo $this->site['base_url']?>admin_clients/search'">
    <span><?php echo Kohana::lang('admin_lang.btn_back')?></span>
    </button>
    &nbsp;
    <button type="reset" name="btn_reset" class="button reset"/>
    <span><?php echo Kohana::lang('admin_lang.btn_reset')?></span>
    </button>
    &nbsp;
    <button type="submit" name="btn_save" class="button save">
    <span><?php echo Kohana::lang('admin_lang.btn_save')?></span>
    </button>
    </td>
  </tr>
</table>
<table class="form" cellspacing="0" cellpadding="5">
  	 <tr>
    <td width="10%" valign="top" nowrap="nowrap"><?php echo Kohana::lang('client_lang.lbl_cate_client')?>: <font color="#FF0000">*</font></td>
    <td>
	 <select name="txt_cate_client" id="txt_cate_client">
	<?php foreach($mListcate_client as $list){ 
	$slected = ($list['cate_client_id']==@$mr['cate_client_id'])?'selected="selected"':'';
	
	?>
	<option  value="<?php echo $list['cate_client_id'] ?>" <?php echo $slected;?>><?php echo $list['languages'][1]['cate_client_title'] ?></option>	
	<?php } ?>
    </select>
	
      </td>
    </tr>
	 <tr>
    <td width="87" valign="top" nowrap="nowrap"><?php echo Kohana::lang('clients_lang.lbl_title')?>: <font color="#FF0000">*</font> </td>
    <td width="703"><div style="float:left;">
	<textarea name="txt_name" cols="50" rows="5"><?php if (isset($mr['clients_name'])) echo $mr['clients_name']; ?></textarea>
       <!-- <input type="text" value="<?php if (isset($mr['clients_name'])) echo $mr['clients_name']; ?>" id="txt_name" name="txt_name" size="70"/>-->
      </div>
       </td>
    </tr>
    <tr>
        <td nowrap="nowrap"><?php echo Kohana::lang('admin_lang.lbl_order')?>:</td>
        <td><input name="txt_sort_order" class="text_number" size="10" value="<?php if (isset($mr['clients_sort_order'])){ echo $mr['clients_sort_order']; } else {echo $mr[0]['max']+1; }?>" /></td>
  	</tr>
	<tr>
	  	<td><?php echo Kohana::lang('admin_lang.lbl_status')?>:</td>
        <td>
        <select name="sel_status" id="sel_status">
            <option value="1" <?php if(isset($mr['clients_status']) && $mr['clients_status']==1) echo 'selected'?> ><?php echo Kohana::lang('admin_lang.lbl_active')?></option>
			<option value="0"><?php echo Kohana::lang('admin_lang.lbl_inactive')?></option>
        </select>        </td>
	</tr>
	
   
    <tr>
      	<td>&nbsp;</td>
		<td>
		<input name="clients_type" type="hidden" id="clients_type" value="1"/>
		<input name="hd_id" type="hidden" id="hd_id" value="<?php echo isset($mr['clients_id'])?$mr['clients_id']:''?>"/></td>
	</tr>
</table>
</form>
<script language="javascript" src="<?php echo $this->site['base_url']?>/themes/plugins/ckeditor/ckeditor.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $this->site['base_url']?>themes/plugins/tabcontent/tabcontent.css">
<script type="text/javascript" src="<?php echo $this->site['base_url']?>themes/plugins/tabcontent/tabcontent.js"></script>
<script type="text/javascript">
var countries=new ddtabcontent("product_tab")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
<iframe width=174 height=189 name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="<?php echo $this->site['base_url']?>themes/plugins/calendar/ipopeng.htm" scrolling="no" frameborder="0" 
style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>